<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>8.关于展开运算符</title>
  </head>
  <body>
    <script type="text/javascript" >
      let obj1 = {a:1,b:2}
      let arr = [1,3,5,7]

      let obj2 = {x:100,y:200,...obj1}

      console.log(obj2)


    </script>
  </body>
</html>